import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

public class MaxsalarySortReducer extends Reducer<MaxsalarySortFlowbean,Text, NullWritable, MaxsalarySortFlowbean> {
    protected void reduce(MaxsalarySortFlowbean key, Iterable<Text> values, Context context)
            throws IOException, InterruptedException {
        for (Text value:values){
            context.write(NullWritable.get(),key);
        }
    }
}
